package javacore2ch5;

public class PrncipalManager {
	public static void main(String[] args) {
		Manager boss = new Manager("Carl Cracker", "Manager", 8000, 1990, 10, 2);
		boss.setBonus(5000);
		
		SalesClerk sales = new SalesClerk("Brad Macaco", "SalesClerk", 7000, 2005, 5, 3);
		sales.setComission(4000);
		
		Employee[] staff = new Employee[4];
		
		staff[0] = boss;
		staff[1] = new Employee("Harry Hacker", "Employee", 6000, 2003, 8, 11);
		staff[2] = new Employee("Tommy Tester", "Employee", 4000, 1990, 5, 22);
		staff[3] = sales;
		
		for (Employee e : staff) {
			System.out.println("Name: " + e.getName() +
					"\nTitle: " + e.getTitle() +
					"\nSalary: " + e.getSalary() +
					"\nHireDay: " + e.getHireDay());
			System.out.println();
		}
	}
}
